﻿@Html.DevExpress().GetStyleSheets(
        new StyleSheet { ExtensionType = ExtensionType.LoadingPanel }
)
@Html.DevExpress().GetScripts(
                new Script { ExtensionType = ExtensionType.LoadingPanel }
    )
@*非模态Loading Panel 用于界面加载*@
@Html.DevExpress().LoadingPanel(settings =>
{
    settings.Name = "lp";
    settings.Modal = false;
    settings.Text = "数据读取中...";
}).GetHtml()
@*非模态Loading Panel*@ 
@*模态Loading Panel 用于数据保存*@
@Html.DevExpress().LoadingPanel(settings =>
{
    settings.Name = "lpModal";
    settings.Modal = true;
    settings.Text = "数据保存中...";
}).GetHtml()
@*模态Loading Panel*@
@*非模态Loading Panel*@ 
@*模态Loading Panel 用于操作数据*@
@Html.DevExpress().LoadingPanel(settings =>
{
    settings.Name = "lpOperation";
    settings.Modal = true;
    settings.Text = "操作执行中...";
}).GetHtml()

<script>
    lp.Show();
    function exec() {
        if (document.readyState == "complete") {
            lp.Hide();
        }
        setTimeout("exec()", 200);
    }
    exec();
</script>


